<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateManagerThirdAuthsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('manager_third_auths', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('manager_id')->comment('管理者ID');
            $table->bigInteger('wx_open_id')->comment('微信openID');
            $table->string('push_type',50)->nullable()->comment('推送类型');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('manager_third_auths');
    }
}
